let uid = 64216;

loadList()
function loadList() {
    axios.get(productListAPI, {
        params: { uid },
    }).then((res) => {
        let pobj = res.data.data;
        console.log(pobj);
        let arr1 = pobj.slice(0,1)
        let arr2 = pobj.slice(1,4)
        let arr3 = pobj.slice(4,5)
        let arr4 = pobj.slice(5)

        let resArr1 = arr1.map((obj)=>
        `
       
            <a href="product-商品详情页.html?pid=${obj.pid}">
                                    <div class="banner-body11">
                                        <img src="${obj.pimg}" alt="">
                                        <dl>
                                            <dt>${obj.pname}</dt>
                                            <dd>￥${obj.pprice}</dd>
        
                                            
                                        </dl>
                                    </div>
                                </a>
                    
        `
        )
        let resArr2 = arr2.map((obj)=>
        `

        <a href="product-商品详情页.html?pid=${obj.pid}">
                                    <div class="banner-body12">
                                        <img src="${obj.pimg}" alt="">
                                        <p>${obj.pname}</p>
                                        <h1>￥${obj.pprice}</h1>
                                    </div>
                                </a>
                    
        `)
        let resArr3 = arr3.map((obj)=>
        `
       
            <a href="product-商品详情页.html?pid=${obj.pid}">
                                    <div class="banner-body11">
                                        <img src="${obj.pimg}" alt="">
                                        <dl>
                                            <dt>${obj.pname}</dt>
                                            <dd>￥${obj.pprice}</dd>
                                        </dl>
                                    </div>
                                </a>
                    
        `
        )
        let resArr4 = arr4.map((obj)=>
        `

        <a href="product-商品详情页.html?pid=${obj.pid}">
                                    <div class="banner-body12">
                                        <img src="${obj.pimg}" alt="">
                                        <p>${obj.pname}</p>
                                        <h1>￥${obj.pprice}</h1>
                                    </div>
                                </a>
                    
        `)
        let banner = document.querySelector(".banner-body10");
        banner.innerHTML = resArr1.join("")+resArr2.join("")+resArr3.join("")+resArr4.join("");
    })
}